﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Systemudvikling___Larman_Projekt___06._02._2012_
{
    class SalesLineItem
    {
        private int quantity;
        private ProductDescription description;

        public SalesLineItem(ProductDescription desc, int quantity)
        {
            this.description = desc;
            this.quantity = quantity;
        }

        public double getSubtotal()
        {
            return (description.getPrice() * quantity);
        }
    }
}
